package sounds;

import java.util.HashMap;
import java.util.Map;

import com.uqbar.vainilla.sound.Sound;
import com.uqbar.vainilla.sound.SoundBuilder;

public class GameSounds {

	public static Map<String, Sound> sounds = new HashMap<String, Sound>();
	
	
	public static void init(){
		SoundBuilder sb = new SoundBuilder();
		
		Sound s1;
		s1 = sb.buildSound("/sounds/laser.wav");
		sounds.put("laser", s1);
		
		sounds.put("asteroid_explosion", sb.buildSound("/sounds/asteroid_explosion.wav"));
		
		sounds.put("ship_explosion", sb.buildSound("/sounds/ship_explosion.wav"));
		
	}
	
	public static Sound getSound(String name){
		return sounds.get(name);
	}
}
